<?php

/**
 * @time 16:54:53 2017-9-3
 * @author huangbin(binhuang4@iflytek.com)
 */

namespace App\Common;

class Util {
    public static function printReturn($flag=FALSE,$msg='',$data=[],$function=null){
        return array('flag'=>$flag,'msg'=>$msg,'data'=>$data,'function'=>$function);
    }
    
    public static function printJson($data){
        header("Content-type: application/json;charset=UTF-8");
        echo json_encode($data);
        exit;
    }
}
